Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add saving flag hack to Skeleton and revert reset timing of animation #102026

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TokageItLab
Copy link
Member

Revert the reset timing of Animation and instead add a saving flag to Skeleton3D as in #91495.

For review, check if the following issue occurs again as regression. Maybe we should add static tests later.

@TokageItLab TokageItLab added this to the 4.4 milestone Jan 25, 2025
@TokageItLab TokageItLab requested a review from a team January 25, 2025 16:03
@TokageItLab TokageItLab requested a review from a team as a code owner January 25, 2025 16:03
@TokageItLab TokageItLab marked this pull request as draft January 25, 2025 16:09
@TokageItLab
Copy link
Member Author

It seems that the SkeletonModifier3D base class needs a static flag to determine if it is valid at save time, so I'll work on adding it.

@fire
Copy link
Member

fire commented Jan 26, 2025

Write when this is ready for review.

@TokageItLab TokageItLab marked this pull request as ready for review January 27, 2025 18:52
@TokageItLab
Copy link
Member Author

TokageItLab commented Jan 27, 2025

Given that the modifier to perform the processing on saving is special case, I have added a virtual method that returns false by default.

RetargetModifier is always processed to reflect the reset result in the child skeleton. However, SpringBoneSimulator has its own saving flag because it only needs a partial process which is collision synchronization.

@clayjohn clayjohn requested review from fire and lyuma January 28, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

AnimationPlayer scaling issue
2 participants